-
Notifications
You must be signed in to change notification settings - Fork 65
Feat/gsteenkamp implement local balance check fallback #2126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Feat/gsteenkamp implement local balance check fallback #2126
Conversation
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
src/utils/token.ts
Outdated
| ) { | ||
| return chainIsSvm(chainId) | ||
| ? getSvmBalance(chainId, account, tokenAddress) | ||
| : getBalance(chainId, account, tokenAddress); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be called getEvmBalance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call! 19dd30c
Signed-off-by: Gerhard Steenkamp <gerhard@umaproject.org>
|
Deployment failed with the following error: Learn More: https://vercel.link/3Fpeeb1 |
closes FE-71
Add Local RPC Token Balance Fetching with API Fallback
This PR implements a dual-source token balance fetching strategy that prioritizes direct RPC calls for more frequent updates, with API fallback for reliability.
If for some reason the API is unable to fetch balances, we can use the local method to ensure we at least fetch balances only for the 2 tokens selected in the UI.